 import PropTypes from 'prop-types'
const Icon=({type})=>{
    return(
        <svg className="icon" aria-hidden="true">
      <use xlinkHref={`#${type}`}></use>
    </svg>
    )
}
Icon.PropType={
    type:PropTypes.string.isRequired
}
export default Icon